#include<iostream>
using namespace std;
class CVehicle {
protected:
	int max_speed;
	int speed;
	int weight;
public:
	CVehicle() {

	}
	CVehicle(int m, int s, int w):max_speed(m),speed(s),weight(w) {
	}
	void disply() {
		cout << "Vehicle:" << endl;
		cout << "max_speed:" << max_speed << endl;
		cout << "speed:" << speed << endl;
		cout << "weight:" << weight << endl;
		cout << endl;
	}
};
class CBicycle :virtual public CVehicle {
protected:
	int height;
public:
	CBicycle() {
	}
	CBicycle(int m, int s, int w, int h) :CVehicle(m, s, w), height(h) {
	}
	void disply() {
		cout << "Bicycle:" << endl;
		cout << "max_speed:" << max_speed << endl;
		cout << "speed:" << speed << endl;
		cout << "weight:" << weight << endl;
		cout << "height:" << height << endl;
		cout << endl;
	}
};
class CMotocar :virtual public CVehicle {
protected:
	int seat_num;
public:
	CMotocar() {
	}
	CMotocar(int m, int s, int w, int n) :CVehicle(m, s, w), seat_num(n) {
	}
	void display() {
		cout << "Motocar:" << endl;
		cout << "max_speed:" << max_speed << endl;
		cout << "speed:" << speed << endl;
		cout << "weight:" << weight << endl;
		cout << "seat_num:" << seat_num << endl;
		cout << endl;
	}
};
class CMotocycle :public CBicycle, public CMotocar {
public:
	CMotocycle(int m, int s, int w, int h, int n) {
		max_speed = m;
		speed = s;
		weight = w;
		height = h;
		seat_num = n;
	}
	void display() {
		cout << "Motocycle:" << endl;
		cout << "max_speed:" << max_speed << endl;
		cout << "speed:" << speed << endl;
		cout << "weight:" << weight << endl;
		cout << "height:" << height << endl;
		cout << "seat_num:" << seat_num << endl;
		cout << endl;
	}
};
int main()
{
	int max_speed;
	int speed;
	int weight;
	int height;
	int seat_num;
	cin >> max_speed >> speed >> weight >> height >> seat_num;
	CVehicle c1(max_speed, speed, weight);
	c1.disply();
	CBicycle c2(max_speed, speed, weight, height);
	c2.disply();
	CMotocar c3(max_speed, speed, weight, seat_num);
	c3.display();
	CMotocycle c4(max_speed, speed, weight, height, seat_num);
	c4.display();
	return 0;
}